<!-- 编辑标尺/技术要求 -->
<template>
  <div id="dialog-container">
    <el-button type="primary" size="small" plain @click="dialogVisible = true">编辑</el-button>
    <el-dialog v-dialogDrag :title="'标尺/技术要求'" :fullscreen="isFullScreen" :custom-class="isFullScreen?'fullscreen-default-dialog':'vertical-center-dialog'" append-to-body width="710px" :before-close="handleClose" :visible.sync="dialogVisible" :close-on-click-modal="false">
      <button type="button" aria-label="fullScreen" class="el-dialog__headerbtn" style="margin-right:25px;top:" @click="isFullScreen = !isFullScreen">
                                                                                                  <i class="el-dialog__close iconfont icon-fuzhicopy22"></i>
                                                                                                </button>
      <el-form :inline="true" size="small" label-width="150px">
        <el-form-item label="标尺/技术要求：" min-width="500">
          <el-input v-model="standardName" type="textarea" :rows="5"  style="width: 400px;"></el-input>
        </el-form-item>
      </el-form>
      <div slot="footer" class="dialog-footer">
        <el-button type="primary" @click="choose">确 定</el-button>
        <el-button @click="handleClose">取 消</el-button>
      </div>
    </el-dialog>
  </div>
</template>

<script>
  import { getDviceList } from 'service/task';
  export default {
    data() {
      return {
        dialogVisible: false,
        isFullScreen: false,
        loading: false
      };
    },
     props: {
    show: {
      type: Boolean,
      default: false
    },
    rowCount: {
      type: Object
    },
    standardName: {
      type: String
    },
  },
    methods: {
      handleClose() {
        this.dialogVisible = false;
      },
      choose() {
        this.$emit('inputEidt', this.rowCount, this.standardName);
        this.dialogVisible = false;
      }
    }
  }

</script>
